package game.shader;

import hx.shader.MultiTextureShader;

@:build(game.macro.ShaderInstanceMacro.build())
class CosShader extends MultiTextureShader {
	public function new() {
		super(null, "
        float time2 = time * 0.05;
        vec2 colorUv = vec2(cos(time2), sin(time2)) * 0.1;
        color = readColor(openfl_TextureCoordv + colorUv);
        ");
	}
}
